-- OpenGemEngine solution, and defines the available configurations
solution "OpenGemEngine"
   configurations { "Debug", "Profiler", "Release" }
   platforms { "native", "x32", "x64" }
   includedirs { "../Code/Library" }   
   vpaths {
     ["Inc"] = "**.h",
     ["Src"] = {"**.c", "**.cpp"},
     ["Res"] = {"**.rc"}
   }   
    defines { "WIN32", "_WINDOWS" }
    location "VS2008"
    libdirs { "../Library/Win32" }   
    targetdir "../Bin/Win32"
    debugdir  "../Bin/Win32" 
    implibdir "../Library/Win32"
   
   configuration "Debug"
       defines { "DEBUG", "_DEBUG" }
       flags { "Symbols" }
	   targetsuffix "_D"
   configuration "Profiler"
       defines { "NDEBUG", "PROFILER" }	
       flags { "Optimize" }
       targetsuffix "_P"   
   configuration "Release"
       defines { "NDEBUG", "RELEASE" }
       flags { "Optimize" }	   
 
		
   -- Core library project
   project "Core"
      location "VS2008/Library"
      kind "SharedLib"
      language "C++"
      files { "../Code/Library/Core/**.h", "../Code/Library/Core/**.cpp", "../Code/Library/Core/**.rc"  }
      -- pchheader "afxwin.h"
      -- pchsource "afxwin.cpp"  
	  defines { "_USRDLL", "CORE_EXPORTS" } 
 
      configuration "Debug"
		 objdir "../Build/Win32/Library/Core/Debug"
 
      configuration "Profiler"
		 objdir "../Build/Win32/Library/Core/Profiler"
 
      configuration "Release"
        objdir "../Build/Win32/Library/Core/Release"		


   -- client app project
   project "App"
      location "VS2008/Client"
      kind "WindowedApp"
      language "C++"
      files { "../Code/Client/App/**.h", "../Code/Client/App/**.cpp", "../Code/Client/App/**.rc" }
	  links {"Core"}
      -- pchheader "afxwin.h"
      -- pchsource "afxwin.cpp"  
 
      configuration "Debug"
         flags { "WinMain" }
		 objdir "../Build/Win32/Client/App/Debug"
 
      configuration "Profiler"
         flags { "WinMain" }
		 objdir "../Build/Win32/Client/App/Profiler"
 
      configuration "Release"
         flags { "WinMain" }   
        objdir "../Build/Win32/Client/App/Release"
